<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<cpn :c-info='info' :child-my-message='message'></cpn>
		</div>
		<template id="cpn">
			<div id="">
				<h2>{{cInfo}}</h2>
				<h2>{{childMyMessage}}</h2>
			</div>
		</template>
		<script src="../js/vue.js"></script>
		<script>
			
			const cpn={
				template:'#cpn',
				props:{
					cInfo:{
						type:Object,
						default(){
							return{}
						}
					},
					childMyMessage:{
						type:String,
						default:''
					}
				}
			}
			
			const app=new Vue({
				el:'#app',
				data:{
					message:'你好',
					info:{
						name:'why',
						age:18,
						height:1.88
					}
				},
				components:{
					cpn
				}
			})
		</script>
	</body>
</html>
